import api from '../utils/http.js'


const getCourseList = (data)=>{
	return api.get('selectForCourseList',data)
}
// 获取一条数据
const getOneCourse =  (data) =>{
  return api.get('/getOneCourse',data)
}

// 根据ID 删除课程
const deleteCourseById =  (data) =>{
  return api.get('/deleteCourseById',data)
}

// 根据ID 更新课程
const updateCourseById =  (data) =>{
  return api.get('/updateCourseById',data)
}

// 根据ID 更新课程
const addCourse =  (data) =>{
  return api.get('/addCourseBy',data)
}

 

export default {   getCourseList,getOneCourse,deleteCourseById,updateCourseById,addCourse}
 
